package com.geekai.chat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.geekai.chat.dto.MessageDto;
import com.geekai.chat.entity.Message;

import java.util.List;

public interface MessageService extends IService<Message> {

    Message saveUserMessage(Long conversationId, String content);

    Message saveAssistantMessage(Long conversationId, String content, String model, Integer tokens);

    List<MessageDto> getConversationMessages(Long conversationId);

    List<Message> getRecentMessages(Long conversationId, int limit);
}